import java.util.*;

public class Test1 {
    public static void main(String[] args) {

        Stack<Integer> stack = new Stack<>();
        List<Integer> arr = new ArrayList<>();
        arr.add(1);
        arr.remove(arr.size()-1) ;
        System.out.println(arr);

    }

}
